orNull

infix fun orNull(value: Int): StrictlyPositiveInt?

Deprecated

Use the StrictlyPositiveIntOrNull function instead.

Replace with

import kotools.types.number.StrictlyPositiveIntOrNull
StrictlyPositiveIntOrNull(value)

Returns the value as a StrictlyPositiveInt, or returns null if the value equals 0.